home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13494 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  931 b 

  1. Path: druid.borland.com!usenet
  2. From: pete@borland.com (Pete Becker)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: HELP: Internal class structure table in Borland C++ 4.5
  5. Date: 25 Mar 1996 22:35:18 GMT
  6. Organization: Borland International
  7. Message-ID: <4j7736$om3@druid.borland.com>
  8. References: <Dou6Eu.ACB@uns.bris.ac.uk>
  9. NNTP-Posting-Host: pbecker.borland.com
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=ISO-8859-1
  12. X-Newsreader: WinVN 0.99.5
  13.  
  14. In article <Dou6Eu.ACB@uns.bris.ac.uk>, andreas@ccr.bris.ac.uk says...
  15. >
  16. >
  17. >Does anyone know how to obtain the name string of a class instance 
  18. >using the 'this' pointer ?  Obviously, Borland C++ must keep a table
  19. >of all class variables, instance info, e.t.c. for each class created, but 
  20. >what is the format of that table ?
  21. > Any help would be greatly appreciated. 
  22.  
  23. I don't know the details of doing that, but why not do it the way it was 
  24. designed to be done? type_id(*this).name().
  25.  
  26.